<template>
    <div>
      <button @click="click">按钮</button>  
    </div>
</template>

<script>
export default {
    name: 'VueDemoMybutton',
    data() {
        return {
            n:"组件"
        };
    },
    methods:{
        click(){
            // console.log((this.$emit('abc',this)));
            this.$emit('abc',this)
        }
    }
};
</script>

<style lang="scss" scoped>

</style>